package com.ruoyi.lvlian.domain;


import com.alibaba.excel.annotation.ExcelProperty;
import com.ruoyi.common.core.utils.DateUtils;
import com.ruoyi.lvlian.util.FormulaToDoubleConverter;
import com.ruoyi.lvlian.util.PercentageStringToIntConverter;
import com.ruoyi.lvlian.util.UniversalConverter;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;

@Data
@ToString
@ApiModel(value = "发票项目名称明细对象", description = "发票项目名称明细对象")
public class InvoiceDetails {
    private static final long serialVersionUID = 1L;

    private String id;
    @ExcelProperty("货物或应税劳务名称")
    private String goodsName;

    @ExcelProperty("规格型号")
    @ApiModelProperty(value = "规格型号")
    private String specification;

    @ExcelProperty("单位")
    private String goodsUnit;

    @ExcelProperty("数量")
    @ApiModelProperty(value = "数量")
    private String goodsQuantity;

    @ExcelProperty("单价")
    private String goodsUnitPrice;

    @ExcelProperty("金额")
    @ApiModelProperty(value = "金额")
    private String amount;

    @ExcelProperty("税率")
    @ApiModelProperty(value = "税率/征收率")
    private String taxRate;

    @ExcelProperty("税额")
    private String taxAmount;

    /**
     * 关联发票id
     */
    @ApiModelProperty(value = "关联发票id")
    private String invoiceId;

    @ExcelProperty("发票号码")
    private String invoiceNum;


    @ExcelProperty("数电票号码")
    @ApiModelProperty(value = "数电票号码")
    private String digitalInvoiceNum;
    /**
     * 创建时间
     */
//    @JsonFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(value = "创建时间 yyyy-MM-dd")
    private String createDate;

    /**
     * 支付回单流水号
     */
    @ApiModelProperty(value = "支付回单流水号")
    private String paymentNum;

    /**
     * 支付回单id（付款回单）
     */
    @ApiModelProperty(value = "支付回单id 付=款回单")
    private String paymentId;

    /**
     * 总共使用金额
     */
    @ApiModelProperty(value = "总共使用金额")
    private String  totalUseAmount;

    @ExcelProperty("所属公司编码")
    private String orgCode;


    @ExcelProperty("价税合计")
    @ApiModelProperty(value = "价税合计含税金额(两个相加)")
    private String totalAmount;

    @ExcelProperty("序号")
    @ApiModelProperty(value = "序号")
    private String sno;

}
